import Vue from "vue";
import App from "./App.vue";

import {
  injectStore,
  injectRouter,
  Libs
} from "../public/iot-core/iot-core.umd.min.js";
import "../public/iot-core/iot-core.css";
Vue.config.productionTip = false;
Vue.use(Libs);

const app = new Vue({
    render: h => h(App)
}).$mount("#app");

app.$nextTick(() => {
    const loadingOverlay = document.querySelector('.loading-overlay');
    if (loadingOverlay) {
      loadingOverlay.style.display = 'none';
      document.getElementById('app').style.display = 'block';
    }
});
